Skip to main content

All Questions

1vote
1answer
707views

Web API with IoC and database integration tests [closed]

I've made integration tests for a major part of my application. I test my dependency injection is set up correctly, creating controllers with it's dependencies going all the way to the database (using ...
user avatar
2votes
2answers
133views

Sales Tax problem (new version)

I was told that this version is too simple, that need something more complex. I added Entity Framework. Here my code: ...
Alexan's user avatar
3votes
1answer
3kviews

Entity Framework 7 In Memory Database - Unit Testing using xUnit

I'm using EF7 with In-Memory database and xUnit for repository testing. I'd like to know if it's a good practice initializing the database in this manner for reuse it in every test method, ...
Franco's user avatar
8votes
1answer
21kviews

EF Generic Repository + Unit of Work pattern with support for Async

I'm working on a generic repository using EF 6 code first and trying to following the Unit of Work pattern. Unity is being used to inject my repositories, and I'm trying to get everything supporting ...
jdylanmc's user avatar
14votes
2answers
5kviews

Repository and Controller tests

Lately I have been researching how to best unit test an EF repository and given a properly tested repository, what to test in the controller. My research did not reveal many sound examples or ...
Caster Troy's user avatar
6votes
2answers
295views

Repository implementation

I have a repository called PostsRepository: ...
Caster Troy's user avatar

close